<%-- 
    Document   : AddDate
    Created on : 2009-5-24, 14:58:08
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.*, java.io.*, java.util.*, database.*" %>
<jsp:useBean id="con" class="database.DatabaseConnection"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
        String textfield = request.getParameter("textfield");
        String textfield2 = request.getParameter("textfield2");
        String textfield3 = request.getParameter("textfield3");
        String textfield4 = request.getParameter("textfield4");
        String textfield5 = request.getParameter("textfield5");

        con.createConnection();
        boolean A_AD = con.AddDate(textfield5, textfield4, textfield, textfield2,textfield3);

        if (A_AD) {

        %>
        <h1>Seccessful</h1>
        <%        } else {
        %>
        <h1>Not Seccessful ! Please send Email to Kris</h1>
        <%        }
        %>
    </body>
</html>
